package com.model;

import java.util.HashSet;
import java.util.Set;

/**
 * Roomtype entity. 
 * @author 0912652
 */

public class Roomtype implements java.io.Serializable {

	// Fields

	private Integer rtid;
	private String tname;
	private Integer bnum;
	private Boolean haswin;
	private Boolean hasair;
	private Boolean hastv;
	private Boolean haswash;
	private Float space;
	private Set rooms = new HashSet(0);

	// Constructors

	/** default constructor */
	public Roomtype() {
	}

	/** minimal constructor */
	public Roomtype(String tname, Integer bnum) {
		this.tname = tname;
		this.bnum = bnum;
	}

	/** full constructor */
	public Roomtype(String tname, Integer bnum, Boolean haswin, Boolean hasair,
			Boolean hastv, Boolean haswash, Float space, Set rooms) {
		this.tname = tname;
		this.bnum = bnum;
		this.haswin = haswin;
		this.hasair = hasair;
		this.hastv = hastv;
		this.haswash = haswash;
		this.space = space;
		this.rooms = rooms;
	}

	// Property accessors

	public Integer getRtid() {
		return this.rtid;
	}

	public void setRtid(Integer rtid) {
		this.rtid = rtid;
	}

	public String getTname() {
		return this.tname;
	}

	public void setTname(String tname) {
		this.tname = tname;
	}

	public Integer getBnum() {
		return this.bnum;
	}

	public void setBnum(Integer bnum) {
		this.bnum = bnum;
	}

	public Boolean getHaswin() {
		return this.haswin;
	}

	public void setHaswin(Boolean haswin) {
		this.haswin = haswin;
	}

	public Boolean getHasair() {
		return this.hasair;
	}

	public void setHasair(Boolean hasair) {
		this.hasair = hasair;
	}

	public Boolean getHastv() {
		return this.hastv;
	}

	public void setHastv(Boolean hastv) {
		this.hastv = hastv;
	}

	public Boolean getHaswash() {
		return this.haswash;
	}

	public void setHaswash(Boolean haswash) {
		this.haswash = haswash;
	}

	public Float getSpace() {
		return this.space;
	}

	public void setSpace(Float space) {
		this.space = space;
	}

	public Set getRooms() {
		return this.rooms;
	}

	public void setRooms(Set rooms) {
		this.rooms = rooms;
	}

}